<template>
  <div>
    <h2>显示路由切换的页面↓</h2>
    <div>
      <!-- <a href="javascript:;" @click="skipByName">首页</a>
      <a href="javascript:;" @click="skipByName">分类</a>
      <a href="javascript:;" @click="skipByName">订单</a>
      <a href="javascript:;" @click="skipByName">我的</a> -->
      <router-link to="/shouye">首页</router-link>
      <router-link to="/fenlei">分类</router-link>
      <router-link to="/dingdan">订单</router-link>
      <router-link to="/wode">我的</router-link>
    </div>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style></style>